package com.xuwang.pojo;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 食品添加剂表(Additive)实体类
 *
 * @author abaaba
 * @since 2021-09-13 18:35:49
 * @version 1.0
 */
    @ApiModel(value = "Additive",description = "食品添加剂表")
public class Additive implements Serializable {
    private static final long serialVersionUID = 918785329611664566L;
    /**
    * 食品添加剂id
    */
	@ApiModelProperty(name = "id",notes = "食品添加剂id",dataType = "Integer",required = true)
    private Integer id;
    /**
    * 添加剂名称
    */
	@ApiModelProperty(name = "additiveName",notes = "添加剂名称",dataType = "String",required = true)
    private String additiveName;
    /**
    * 供货商id
    */
	@ApiModelProperty(name = "supplierId",notes = "供货商id",dataType = "Integer",required = true)
    private Integer supplierId;
    /**
    * 保质期
    */
	@ApiModelProperty(name = "additiveWarranty",notes = "保质期",dataType = "Integer",required = true)
    private Integer additiveWarranty;
    /**
     * 是否删除
     */
    @ApiModelProperty(name = "isDelete",notes = "是否删除",dataType = "Integer",required = true)
    private Integer isDelete;
    /**
     * 生产添加剂企业
     */
    @ApiModelProperty(name = "companyInfo",notes = "生产添加剂的企业",dataType = "CompanyInfo",required = true)
    private CompanyInfo companyInfo;


    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }



    public CompanyInfo getCompanyInfo() {
        return companyInfo;
    }

    public void setCompanyInfo(CompanyInfo companyInfo) {
        this.companyInfo = companyInfo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getAdditiveName() {
        return additiveName;
    }

    public void setAdditiveName(String additiveName) {
        this.additiveName = additiveName;
    }
        
    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }
        
    public Integer getAdditiveWarranty() {
        return additiveWarranty;
    }

    public void setAdditiveWarranty(Integer additiveWarranty) {
        this.additiveWarranty = additiveWarranty;
    }

    @Override
    public String toString() {
        return "{\"Additive\":{"
                + "\"id\":"
                + id
                + ",\"additiveName\":\""
                + additiveName + '\"'
                + ",\"supplierId\":"
                + supplierId
                + ",\"additiveWarranty\":"
                + additiveWarranty
                + ",\"isDelete\":"
                + isDelete
                + ",\"companyInfo\":"
                + companyInfo
                + "}}";

    }
}